#!/bin/bash
echo "Raspbery administration deploy started!"
sudo apt update && sudo apt -y dist-upgrade
sudo apt-get install python-pip


sudo apt-get install gunicorn mysql-client mysql-server python-mysqldb


pip install venv
pip install requirements.txt
virtualenv myappenv
# настройка Mysql------------
mysql CREATE DATABASE `new_db`


python manage.py migrate
python manage.py migrate --run-syncdb
python manage.py createsuperuser --username "admin5" --email adm@yandex.ru

uvicorn malina_admin.asgi:application --host 127.0.0.1 --port 8000